﻿<div class="clientId-Dialog">
    <form action='@Url.Action("Save", "WebApplicationCredential")' method="post" data-event-adapter="oauthList.selectedChanged=attr('action',args.action)">
        @*@Html.AntiForgeryToken()*@
        @Html.ValidationSummary(true)
        <input type="hidden" value="@ViewBag.ApplicationUser.Id" name="ApplicationUser.Id" />
        <div class="clientID-Title">
            <span>创建CLIENT ID</span>
        </div>
        <div>
            <h3>应用程序类型</h3>
        </div>
        <div id="oauthList" class="radioList">
            <div>
                <div>
                    <input type="radio" id="radioWeb" checked="checked" data-action='@Url.Action("Save", "WebApplicationCredential")' name="radioOAuth" />
                    互联网应用
                </div>
                <span>使用浏览器通过网络访问</span>
            </div>
            <div>
                <div>
                    <input type="radio" id="radioService" data-action='@Url.Action("Save", "NativeApplicationCredential")' name="radioOAuth" />
                    本地应用
                </div>
                <span>使用自己的应用程序调用三宝云的API</span>
            </div>


        </div>
        <div id="AuthorizedUrl" data-event-adapter="oauthList.selectedChanged=toggleClass('selected')">
            <h3>Authorized JavaScript origins </h3>
            <div>Cannot contain a wildcard (http://*.example.com) or a path (http://example.com/subdir).</div>
            <textarea id="JavascriptOrigins" class="w-1" style="height: 5em;" rows="2"  placeholder="源" name="JavascriptOrigins" cols="20"></textarea>
            <h3>Authorized redirect URI  </h3>
            <textarea id="RedirectUris" class="w-1" style="height: 5em;" rows="2" placeholder="请求地址" name="RedirectUris" cols="20"></textarea>
        </div>
        <div class="project-create-buttons">
            <input type="submit" id="credentialSubmit" value="创建客户端凭据" />
            @*  <input type="button" id="credentialCancel" value="取消" data-click-command="page.closeDialog()" />*@
        </div>
    </form>

</div>
